package com.maiji.cloud.utils;

public enum FlowTypeEnum {
	RETURNMONEY(1,"资金类型：订单返现余额"),
    FUND(2,"资金类型：减肥基金"),
    INTEGRAL(3,"资金类型：积分"),
    DISTRIBUTIONMONEY(4,"资金类型：分销可提现余额"),
    INCREASE(1,"资金变动类型：增加"),
    DECREASE(2,"资金变动类型：减少"),
	INVITATION(2001,"邀请好友下载获取积分"),
	COUPON(2002,"兑换优惠券"),
	EXCHANGE_GOODS(2004,"积分兑换商品"),
	SIGN_IN(2003,"签到获取积分"),
	WITHDRAW(3001,"提现"), 
	ORDER_SUBMIT(1001,"提交订单"),
	ORDER_CANCEL(-1001,"取消订单"),
	ORDER_CANCEL_AUTO(-1002,"定时取消订单"),
	ORDER_REFUND_MONEY(-1003, "余额支付退款"),
	ORDER_REFUND_FUND(-1004, "申请退款退回减肥基金"),
	ORDER_REFUND_INTEGRAL(-1005, "申请退款退回积分"),
	UNFREEZE(2005,"订单完成解冻分销资金"),
	SHAREORDERHELP(4001, "订单返现分享助力"),
	BALANCE_PAY(4002, "余额支付扣除资金"),
	BASE_LOSE_WEIGHT_FUND(4003, "基础减肥基金"),
	HELP_LOSE_WEIGHT_FUND(4004, "助力获得减肥基金"),
	PUBLISH(5001, "发布动态"),
	RETRANSMISSION(5002, "转发"),
	THUMBS(5003, "点赞"),
	REVIEW(5004,"评论"),
	INVITE_REGISTER(5005,"邀请注册"),
	SHOPPING_ORDER(5006,"购买下单");
	

	private Integer key;

    private String value;

    FlowTypeEnum(Integer key, String value) {
        this.key = key;
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    public Integer getKey() {
        return key;
    }

    public static String getMsg(Integer key) {
        String msg = "";
        if (key == null) {
            return msg;
        }
        for (FlowTypeEnum err : FlowTypeEnum.values()) {
            if (key.equals(err.key)) {
                return err.value;
            }
        }
        return msg;
    }

    public static void main(String[] args) {
		
		String s= FlowTypeEnum.INVITATION.value;
		System.out.println(s);
	}
    
}
